package cn.gson.crm.model.dao;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import cn.gson.crm.model.pojo.Backrecord;

@Repository
public interface BackRecordDAO extends CrudRepository<Backrecord, Long> {
	@Query("from Backrecord")
	public List<Backrecord> getAllBackRecord(Pageable pageable);
	
	@Query("from Backrecord c where c.brId = ?1")
	public Backrecord findById(Long id);
	
}
